Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Add layout_mode_font_height_weight argument to PageObject.extract_text() #2920

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hpierre001
Copy link

Implements feature proposed in issue #2915

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.39%. Comparing base (dd18967) to head (df76211).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2920      +/-   ##
==========================================
+ Coverage   96.36%   96.39%   +0.02%     
==========================================
  Files          52       52              
  Lines        8728     8728              
  Branches     1589     1589              
==========================================
+ Hits         8411     8413       +2     
+ Misses        187      186       -1     
+ Partials      130      129       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hpierre001 hpierre001 force-pushed the issue-2915 branch 2 times, most recently from 22c82e2 to 8aef4ec Compare October 22, 2024 20:50

def test_layout_mode_vertical_space():
"""Tests for #2915"""
reader = PdfReader(RESOURCE_ROOT / "attachment.pdf")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend using crazyones.pdf instead which should have the same content.

Apart from this: Could you please extend the test to actually show the difference between different weights? By just looking at the existing test, it is not really clear to me where the actual difference is (unless looking at others tests or crazyones.txt).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants